Fix leak in text.cc that I introduced last night.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 27 Jan 2015 18:35:32 +0000 (18:35 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 27 Jan 2015 18:35:32 +0000 (18:35 +0000)
gpsbabel/text.cc

index 8cc01478c538419906ee87c8a9a975d2ec97355c..f55cf8cc956aed2287698e7a48874b7082f56f55 100644 (file)
@@ -157,7 +157,7 @@ text_disp(const Waypoint* wpt)
       if (txt_encrypt) {
         hint = rot13(wpt->gc_data->hint);
       } else {
-        hint = xstrdup(wpt->gc_data->hint);
+        hint = wpt->gc_data->hint;
       }
       gbfprintf(file_out, "\nHint: %s\n", CSTR(hint));
     }